<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="java.util.Date"%>
<jsp:useBean id="connection" scope="page" class="com.wy.JDBConnection"/>
<html>
<head>
<title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

placard_show_config page
</title>
</head>
<%!
String sql;
Date date=new Date();
%>
<body bgcolor="#ffffff">
<%
request.setCharacterEncoding("utf-8");
String enterprisesort=request.getParameter("enterprisesort");
String enterprisename=request.getParameter("enterprisename");
String operation=request.getParameter("operation");
String workarea=request.getParameter("workarea");
String address=request.getParameter("address");
String phone=request.getParameter("phone");
String linkman=request.getParameter("linkman");
String handset=request.getParameter("handset");
String fax=request.getParameter("fax");
String email=request.getParameter("email");
String http=request.getParameter("http");
String intro=request.getParameter("intro");
String username=request.getParameter("username");



sql="insert into   tb_enterprise(enterprisesort,enterprisename,operation,workarea,address,phone,linkman,handset,fax,email,http,intro,username) values"+

"('"+enterprisesort+"' , '"+enterprisename+"', '"+operation+"', '"+workarea+"','"+address+"'"+
", '"+phone+"', '"+linkman+"'"
+", '"+handset+"', '"+fax+"', '"+email+"', '"+http+"',"+
" '"+intro+"', '"+username+"')";
boolean bb=connection.insert(sql);
if(bb)
{%>
<script language="javascript">
alert("您输入的企业信息已经存储完成！！！");
</script>
<%
response.sendRedirect("enterprise_select.jsp");
}else
{
%>
<script language="javascript">
alert("您输入的企业信息存储失败！！！");
history.back();
</script>
<%
}
%>
</body>
</html>

